<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PxTask.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('PxTask_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">PxTask.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="PxTask_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// modification, are permitted provided that the following conditions</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// are met:</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  * Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//  * Redistributions in binary form must reproduce the above copyright</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer in the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//    documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//  * Neither the name of NVIDIA CORPORATION nor the names of its</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//    contributors may be used to endorse or promote products derived</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//    from this software without specific prior written permission.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS &#39;&#39;AS IS&#39;&#39; AND ANY</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">// Copyright (c) 2008-2021 NVIDIA Corporation. All rights reserved.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#ifndef PXTASK_PXTASK_H</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#define PXTASK_PXTASK_H</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxTaskDefine_8h.html">task/PxTaskDefine.h</a>&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxTaskManager_8h.html">task/PxTaskManager.h</a>&quot;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxCpuDispatcher_8h.html">task/PxCpuDispatcher.h</a>&quot;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxAssert_8h.html">foundation/PxAssert.h</a>&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacephysx.html">physx</a></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classphysx_1_1PxBaseTask.html">   44</a></span>&#160;<span class="keyword">class </span><a class="code" href="classphysx_1_1PxBaseTask.html">PxBaseTask</a></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;{</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classphysx_1_1PxBaseTask.html#a387b986ef3916322502452724d9ba582">   47</a></span>&#160;    <a class="code" href="classphysx_1_1PxBaseTask.html#a387b986ef3916322502452724d9ba582">PxBaseTask</a>() : <a class="code" href="classphysx_1_1PxBaseTask.html#a67864643cd2dfaf8483f8b7a75376bc7">mContextID</a>(0), <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>(NULL) {}</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classphysx_1_1PxBaseTask.html#ac3100494c97a23a88fcad8e28e222822">   48</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classphysx_1_1PxBaseTask.html#ac3100494c97a23a88fcad8e28e222822">~PxBaseTask</a>() {}</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>        <a class="code" href="classphysx_1_1PxBaseTask.html#a517a16d9dc630c9274a7564deb3a7e4a">run</a>() = 0;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classphysx_1_1PxBaseTask.html#aa54eb4a1b50979436a797a62e383efee">getName</a>() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>        <a class="code" href="classphysx_1_1PxBaseTask.html#a07c9f6e71f0723bcf914fce51036d36e">addReference</a>() = 0;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>        <a class="code" href="classphysx_1_1PxBaseTask.html#a78f9b745c6fb4114350cb1a26f3461d3">removeReference</a>() = 0;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">virtual</span> int32_t     <a class="code" href="classphysx_1_1PxBaseTask.html#a5a1570309c62a12c3ecfe7e695b9f21f">getReference</a>() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span>        <a class="code" href="classphysx_1_1PxBaseTask.html#a3be62f992c1ff7218e2cf0fc0ba5b244">release</a>() = 0;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classphysx_1_1PxBaseTask.html#a4fdd1448dcd86af96c5f1b79eb470e44">   88</a></span>&#160;    <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classphysx_1_1PxTaskManager.html">PxTaskManager</a>* <a class="code" href="classphysx_1_1PxBaseTask.html#a4fdd1448dcd86af96c5f1b79eb470e44">getTaskManager</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="keyword">    </span>{</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    }</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classphysx_1_1PxBaseTask.html#a0fa6ca56b758ea6b8be5c3acc8e89364">   93</a></span>&#160;    <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">void</span>    <a class="code" href="classphysx_1_1PxBaseTask.html#a0fa6ca56b758ea6b8be5c3acc8e89364">setContextId</a>(<a class="code" href="namespacephysx.html#a8ee037dcecf7198800e1f302795c10ee">PxU64</a> <span class="keywordtype">id</span>)          { <a class="code" href="classphysx_1_1PxBaseTask.html#a67864643cd2dfaf8483f8b7a75376bc7">mContextID</a> = id;      }</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classphysx_1_1PxBaseTask.html#abbc9d0b8d2a3c95f6c4579920f92d337">   94</a></span>&#160;    <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#a8ee037dcecf7198800e1f302795c10ee">PxU64</a>   <a class="code" href="classphysx_1_1PxBaseTask.html#abbc9d0b8d2a3c95f6c4579920f92d337">getContextId</a>()<span class="keyword">          const   </span>{ <span class="keywordflow">return</span> <a class="code" href="classphysx_1_1PxBaseTask.html#a67864643cd2dfaf8483f8b7a75376bc7">mContextID</a>;    }</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classphysx_1_1PxBaseTask.html#a67864643cd2dfaf8483f8b7a75376bc7">   97</a></span>&#160;    <a class="code" href="namespacephysx.html#a8ee037dcecf7198800e1f302795c10ee">PxU64</a>               <a class="code" href="classphysx_1_1PxBaseTask.html#a67864643cd2dfaf8483f8b7a75376bc7">mContextID</a>;     </div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">   98</a></span>&#160;    <a class="code" href="classphysx_1_1PxTaskManager.html">PxTaskManager</a>*      <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>;            </div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classphysx_1_1PxBaseTask.html#ac4a43ca8ae513a20c1d61bc9aecfce89">  100</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classphysx_1_1PxBaseTask.html#ac4a43ca8ae513a20c1d61bc9aecfce89">PxTaskMgr</a>;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;};</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classphysx_1_1PxTask.html">  110</a></span>&#160;<span class="keyword">class </span><a class="code" href="classphysx_1_1PxTask.html">PxTask</a> : <span class="keyword">public</span> <a class="code" href="classphysx_1_1PxBaseTask.html">PxBaseTask</a></div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;{</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classphysx_1_1PxTask.html#a01ed1f8968b3e631509c42994b10b5cd">  113</a></span>&#160;    <a class="code" href="classphysx_1_1PxTask.html#a01ed1f8968b3e631509c42994b10b5cd">PxTask</a>() : <a class="code" href="classphysx_1_1PxTask.html#aa67264a3a16ca138fd854539bf52ac06">mTaskID</a>(0) {}</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classphysx_1_1PxTask.html#acde4da75284803e84d6cb20cda890223">  114</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classphysx_1_1PxTask.html#acde4da75284803e84d6cb20cda890223">~PxTask</a>() {}</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classphysx_1_1PxTask.html#acedcca7b8305c3ad519e537ab307c39a">  117</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxTask.html#acedcca7b8305c3ad519e537ab307c39a">release</a>()</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    {</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <a class="code" href="group__foundation.html#ga4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(<a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>);</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        <span class="comment">// clear mTm before calling taskCompleted() for safety</span></div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        <a class="code" href="classphysx_1_1PxTaskManager.html">PxTaskManager</a>* save = <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a> = NULL;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        save-&gt;<a class="code" href="classphysx_1_1PxTaskManager.html#a36a746ff81e26d57195ebfdd0141e912">taskCompleted</a>( *<span class="keyword">this</span> );</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    }</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="comment">//         task is allowed to start.</span></div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classphysx_1_1PxTask.html#aa417f4d080c31178ff6ded2c92b8bb05">  129</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxTask.html#aa417f4d080c31178ff6ded2c92b8bb05">finishBefore</a>( <a class="code" href="namespacephysx.html#a7a08e207472f32da1e024056f32d64a2">PxTaskID</a> taskID )</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    {</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <a class="code" href="group__foundation.html#ga4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(<a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>);</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>-&gt;finishBefore( *<span class="keyword">this</span>, taskID);</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    }</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="comment">//         task has completed.</span></div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classphysx_1_1PxTask.html#a5ea294d819b903a507efe1358f86b8cd">  137</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxTask.html#a5ea294d819b903a507efe1358f86b8cd">startAfter</a>( <a class="code" href="namespacephysx.html#a7a08e207472f32da1e024056f32d64a2">PxTaskID</a> taskID )</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    {</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        <a class="code" href="group__foundation.html#ga4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(<a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>);</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>-&gt;startAfter( *<span class="keyword">this</span>, taskID );</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    }</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classphysx_1_1PxTask.html#ad3828abb4bd2237af28ecd08b972b1af">  147</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxTask.html#ad3828abb4bd2237af28ecd08b972b1af">addReference</a>()</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    {</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        <a class="code" href="group__foundation.html#ga4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(<a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>);</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>-&gt;addReference( <a class="code" href="classphysx_1_1PxTask.html#aa67264a3a16ca138fd854539bf52ac06">mTaskID</a> );</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    }</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classphysx_1_1PxTask.html#a097c70f1419ad4991ef876ddd9a74d48">  157</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxTask.html#a097c70f1419ad4991ef876ddd9a74d48">removeReference</a>()</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    {</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <a class="code" href="group__foundation.html#ga4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(<a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>);</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>-&gt;decrReference( <a class="code" href="classphysx_1_1PxTask.html#aa67264a3a16ca138fd854539bf52ac06">mTaskID</a> );</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    }</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="classphysx_1_1PxTask.html#aae6b544fb79856864edbfaf83cce023a">  166</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> int32_t <a class="code" href="classphysx_1_1PxTask.html#aae6b544fb79856864edbfaf83cce023a">getReference</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="keyword">    </span>{</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>-&gt;getReference( <a class="code" href="classphysx_1_1PxTask.html#aa67264a3a16ca138fd854539bf52ac06">mTaskID</a> );</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    }</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    </div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="classphysx_1_1PxTask.html#af4d14c61a128bf98957331c04472a4df">  174</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="namespacephysx.html#a7a08e207472f32da1e024056f32d64a2">PxTaskID</a>      <a class="code" href="classphysx_1_1PxTask.html#af4d14c61a128bf98957331c04472a4df">getTaskID</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="keyword">    </span>{</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classphysx_1_1PxTask.html#aa67264a3a16ca138fd854539bf52ac06">mTaskID</a>;</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    }</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classphysx_1_1PxTask.html#a2a0a6f83fcd05069f594631272faa8ae">  184</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxTask.html#a2a0a6f83fcd05069f594631272faa8ae">submitted</a>()</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    {</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    }</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classphysx_1_1PxTask.html#aa67264a3a16ca138fd854539bf52ac06">  189</a></span>&#160;    <a class="code" href="namespacephysx.html#a7a08e207472f32da1e024056f32d64a2">PxTaskID</a>            <a class="code" href="classphysx_1_1PxTask.html#aa67264a3a16ca138fd854539bf52ac06">mTaskID</a>;            </div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;</div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classphysx_1_1PxTask.html#ac4a43ca8ae513a20c1d61bc9aecfce89">  191</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classphysx_1_1PxTask.html#ac4a43ca8ae513a20c1d61bc9aecfce89">PxTaskMgr</a>;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;};</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="classphysx_1_1PxLightCpuTask.html">  208</a></span>&#160;<span class="keyword">class </span><a class="code" href="classphysx_1_1PxLightCpuTask.html">PxLightCpuTask</a> : <span class="keyword">public</span> <a class="code" href="classphysx_1_1PxBaseTask.html">PxBaseTask</a></div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;{</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="classphysx_1_1PxLightCpuTask.html#a1576f85a8b81170e5fd28dec773c2a45">  211</a></span>&#160;    <a class="code" href="classphysx_1_1PxLightCpuTask.html#a1576f85a8b81170e5fd28dec773c2a45">PxLightCpuTask</a>()</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        : <a class="code" href="classphysx_1_1PxLightCpuTask.html#a7e5dbe5f98e11385d0e0a921d3af8243">mCont</a>( NULL )</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;        , <a class="code" href="classphysx_1_1PxLightCpuTask.html#a04e7bde817081eb377f129e7de7e285a">mRefCount</a>( 0 )</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    {</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    }</div><div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="classphysx_1_1PxLightCpuTask.html#a0d9094c15329d367cff90b95e0bdcf88">  216</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#a0d9094c15329d367cff90b95e0bdcf88">~PxLightCpuTask</a>()</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    {</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a> = NULL;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    }</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="classphysx_1_1PxLightCpuTask.html#a56ef764508a2bbc98d82bb6dbb09fa3e">  230</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#a56ef764508a2bbc98d82bb6dbb09fa3e">setContinuation</a>(<a class="code" href="classphysx_1_1PxTaskManager.html">PxTaskManager</a>&amp; tm, <a class="code" href="classphysx_1_1PxBaseTask.html">PxBaseTask</a>* c)</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    {</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        <a class="code" href="group__foundation.html#ga4a83a657390b324a460f14684e5accee">PX_ASSERT</a>( <a class="code" href="classphysx_1_1PxLightCpuTask.html#a04e7bde817081eb377f129e7de7e285a">mRefCount</a> == 0 );</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        <a class="code" href="classphysx_1_1PxLightCpuTask.html#a04e7bde817081eb377f129e7de7e285a">mRefCount</a> = 1;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;        <a class="code" href="classphysx_1_1PxLightCpuTask.html#a7e5dbe5f98e11385d0e0a921d3af8243">mCont</a> = c;</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;        <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a> = &amp;tm;</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classphysx_1_1PxLightCpuTask.html#a7e5dbe5f98e11385d0e0a921d3af8243">mCont</a> )</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;        {</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;            <a class="code" href="classphysx_1_1PxLightCpuTask.html#a7e5dbe5f98e11385d0e0a921d3af8243">mCont</a>-&gt;<a class="code" href="classphysx_1_1PxBaseTask.html#a07c9f6e71f0723bcf914fce51036d36e">addReference</a>();</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        }</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    }</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;</div><div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="classphysx_1_1PxLightCpuTask.html#a2ae16158861b04543919fdc456bb4559">  249</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#a2ae16158861b04543919fdc456bb4559">setContinuation</a>( <a class="code" href="classphysx_1_1PxBaseTask.html">PxBaseTask</a>* c )</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    {</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        <a class="code" href="group__foundation.html#ga4a83a657390b324a460f14684e5accee">PX_ASSERT</a>( c );</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        <a class="code" href="group__foundation.html#ga4a83a657390b324a460f14684e5accee">PX_ASSERT</a>( <a class="code" href="classphysx_1_1PxLightCpuTask.html#a04e7bde817081eb377f129e7de7e285a">mRefCount</a> == 0 );</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;        <a class="code" href="classphysx_1_1PxLightCpuTask.html#a04e7bde817081eb377f129e7de7e285a">mRefCount</a> = 1;</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        <a class="code" href="classphysx_1_1PxLightCpuTask.html#a7e5dbe5f98e11385d0e0a921d3af8243">mCont</a> = c;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classphysx_1_1PxLightCpuTask.html#a7e5dbe5f98e11385d0e0a921d3af8243">mCont</a> )</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        {</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;            <a class="code" href="classphysx_1_1PxLightCpuTask.html#a7e5dbe5f98e11385d0e0a921d3af8243">mCont</a>-&gt;<a class="code" href="classphysx_1_1PxBaseTask.html#a07c9f6e71f0723bcf914fce51036d36e">addReference</a>();</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;            <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a> = <a class="code" href="classphysx_1_1PxLightCpuTask.html#a7e5dbe5f98e11385d0e0a921d3af8243">mCont</a>-&gt;<a class="code" href="classphysx_1_1PxBaseTask.html#a4fdd1448dcd86af96c5f1b79eb470e44">getTaskManager</a>();</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;            <a class="code" href="group__foundation.html#ga4a83a657390b324a460f14684e5accee">PX_ASSERT</a>( <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a> );</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;        }</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    }</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div><div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="classphysx_1_1PxLightCpuTask.html#a63b2349867ec05cb45ba43db8c478a51">  266</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classphysx_1_1PxBaseTask.html">PxBaseTask</a>*   <a class="code" href="classphysx_1_1PxLightCpuTask.html#a63b2349867ec05cb45ba43db8c478a51">getContinuation</a>()<span class="keyword">   const</span></div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;<span class="keyword">    </span>{</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#a7e5dbe5f98e11385d0e0a921d3af8243">mCont</a>;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    }</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;</div><div class="line"><a name="l00275"></a><span class="lineno"><a class="line" href="classphysx_1_1PxLightCpuTask.html#a4f847956e5ba51a36bbb3ced5bb15a6c">  275</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#a4f847956e5ba51a36bbb3ced5bb15a6c">removeReference</a>()</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    {</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;        <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>-&gt;decrReference(*<span class="keyword">this</span>);</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    }</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;</div><div class="line"><a name="l00281"></a><span class="lineno"><a class="line" href="classphysx_1_1PxLightCpuTask.html#a2e5ad3537b92242cc0bb81dfd70a82da">  281</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> int32_t <a class="code" href="classphysx_1_1PxLightCpuTask.html#a2e5ad3537b92242cc0bb81dfd70a82da">getReference</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;<span class="keyword">    </span>{</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#a04e7bde817081eb377f129e7de7e285a">mRefCount</a>;</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    }</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;</div><div class="line"><a name="l00290"></a><span class="lineno"><a class="line" href="classphysx_1_1PxLightCpuTask.html#a572d87fd23a65723d8e817f65e4681e6">  290</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#a572d87fd23a65723d8e817f65e4681e6">addReference</a>()</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    {</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;        <a class="code" href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">mTm</a>-&gt;addReference(*<span class="keyword">this</span>);</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    }</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;</div><div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="classphysx_1_1PxLightCpuTask.html#aea23c57ffecb54f397089de1f3b0ad20">  300</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#aea23c57ffecb54f397089de1f3b0ad20">release</a>()</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;    {</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;        <span class="keywordflow">if</span>( <a class="code" href="classphysx_1_1PxLightCpuTask.html#a7e5dbe5f98e11385d0e0a921d3af8243">mCont</a> )</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;        {</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;            <a class="code" href="classphysx_1_1PxLightCpuTask.html#a7e5dbe5f98e11385d0e0a921d3af8243">mCont</a>-&gt;<a class="code" href="classphysx_1_1PxBaseTask.html#a78f9b745c6fb4114350cb1a26f3461d3">removeReference</a>();</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        }</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    }</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;</div><div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="classphysx_1_1PxLightCpuTask.html#a7e5dbe5f98e11385d0e0a921d3af8243">  310</a></span>&#160;    <a class="code" href="classphysx_1_1PxBaseTask.html">PxBaseTask</a>*         <a class="code" href="classphysx_1_1PxLightCpuTask.html#a7e5dbe5f98e11385d0e0a921d3af8243">mCont</a>;          </div><div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="classphysx_1_1PxLightCpuTask.html#a04e7bde817081eb377f129e7de7e285a">  311</a></span>&#160;    <span class="keyword">volatile</span> int32_t    <a class="code" href="classphysx_1_1PxLightCpuTask.html#a04e7bde817081eb377f129e7de7e285a">mRefCount</a>;      </div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;</div><div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="classphysx_1_1PxLightCpuTask.html#ac4a43ca8ae513a20c1d61bc9aecfce89">  313</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classphysx_1_1PxLightCpuTask.html#ac4a43ca8ae513a20c1d61bc9aecfce89">PxTaskMgr</a>;</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;};</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;}<span class="comment">// end physx namespace</span></div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;</div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;<span class="preprocessor">#endif // PXTASK_PXTASK_H</span></div><div class="ttc" id="namespacephysx_html"><div class="ttname"><a href="namespacephysx.html">physx</a></div><div class="ttdef"><b>Definition:</b> GuContactBuffer.h:37</div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html">physx::PxBaseTask</a></div><div class="ttdoc">Base class of all task types. </div><div class="ttdef"><b>Definition:</b> PxTask.h:44</div></div>
<div class="ttc" id="classphysx_1_1PxLightCpuTask_html_aea23c57ffecb54f397089de1f3b0ad20"><div class="ttname"><a href="classphysx_1_1PxLightCpuTask.html#aea23c57ffecb54f397089de1f3b0ad20">physx::PxLightCpuTask::release</a></div><div class="ttdeci">PX_INLINE void release()</div><div class="ttdoc">called by CpuDispatcher after run method has completed </div><div class="ttdef"><b>Definition:</b> PxTask.h:300</div></div>
<div class="ttc" id="classphysx_1_1PxLightCpuTask_html_a1576f85a8b81170e5fd28dec773c2a45"><div class="ttname"><a href="classphysx_1_1PxLightCpuTask.html#a1576f85a8b81170e5fd28dec773c2a45">physx::PxLightCpuTask::PxLightCpuTask</a></div><div class="ttdeci">PxLightCpuTask()</div><div class="ttdef"><b>Definition:</b> PxTask.h:211</div></div>
<div class="ttc" id="classphysx_1_1PxTask_html_acedcca7b8305c3ad519e537ab307c39a"><div class="ttname"><a href="classphysx_1_1PxTask.html#acedcca7b8305c3ad519e537ab307c39a">physx::PxTask::release</a></div><div class="ttdeci">virtual void release()</div><div class="ttdoc">Release method implementation. </div><div class="ttdef"><b>Definition:</b> PxTask.h:117</div></div>
<div class="ttc" id="PxTaskDefine_8h_html"><div class="ttname"><a href="PxTaskDefine_8h.html">PxTaskDefine.h</a></div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html_abbc9d0b8d2a3c95f6c4579920f92d337"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html#abbc9d0b8d2a3c95f6c4579920f92d337">physx::PxBaseTask::getContextId</a></div><div class="ttdeci">PX_FORCE_INLINE PxU64 getContextId() const</div><div class="ttdef"><b>Definition:</b> PxTask.h:94</div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html_ac3100494c97a23a88fcad8e28e222822"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html#ac3100494c97a23a88fcad8e28e222822">physx::PxBaseTask::~PxBaseTask</a></div><div class="ttdeci">virtual ~PxBaseTask()</div><div class="ttdef"><b>Definition:</b> PxTask.h:48</div></div>
<div class="ttc" id="classphysx_1_1PxTask_html_a097c70f1419ad4991ef876ddd9a74d48"><div class="ttname"><a href="classphysx_1_1PxTask.html#a097c70f1419ad4991ef876ddd9a74d48">physx::PxTask::removeReference</a></div><div class="ttdeci">PX_INLINE void removeReference()</div><div class="ttdoc">Manually decrement this task&amp;#39;s reference count. If the reference count reaches zero, the task will be dispatched. </div><div class="ttdef"><b>Definition:</b> PxTask.h:157</div></div>
<div class="ttc" id="classphysx_1_1PxLightCpuTask_html_a04e7bde817081eb377f129e7de7e285a"><div class="ttname"><a href="classphysx_1_1PxLightCpuTask.html#a04e7bde817081eb377f129e7de7e285a">physx::PxLightCpuTask::mRefCount</a></div><div class="ttdeci">volatile int32_t mRefCount</div><div class="ttdoc">PxTask is dispatched when reaches 0. </div><div class="ttdef"><b>Definition:</b> PxTask.h:311</div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html_a67864643cd2dfaf8483f8b7a75376bc7"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html#a67864643cd2dfaf8483f8b7a75376bc7">physx::PxBaseTask::mContextID</a></div><div class="ttdeci">PxU64 mContextID</div><div class="ttdoc">Context ID for profiler interface. </div><div class="ttdef"><b>Definition:</b> PxTask.h:97</div></div>
<div class="ttc" id="namespacephysx_html_a7a08e207472f32da1e024056f32d64a2"><div class="ttname"><a href="namespacephysx.html#a7a08e207472f32da1e024056f32d64a2">physx::PxTaskID</a></div><div class="ttdeci">unsigned int PxTaskID</div><div class="ttdef"><b>Definition:</b> PxTaskManager.h:41</div></div>
<div class="ttc" id="group__foundation_html_ga6a774eed3cad34b0f636332a3d28c6bb"><div class="ttname"><a href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a></div><div class="ttdeci">#define PX_FORCE_INLINE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:351</div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html_a3be62f992c1ff7218e2cf0fc0ba5b244"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html#a3be62f992c1ff7218e2cf0fc0ba5b244">physx::PxBaseTask::release</a></div><div class="ttdeci">virtual void release()=0</div><div class="ttdoc">Implemented by derived implementation classes. </div></div>
<div class="ttc" id="classphysx_1_1PxLightCpuTask_html_a2e5ad3537b92242cc0bb81dfd70a82da"><div class="ttname"><a href="classphysx_1_1PxLightCpuTask.html#a2e5ad3537b92242cc0bb81dfd70a82da">physx::PxLightCpuTask::getReference</a></div><div class="ttdeci">PX_INLINE int32_t getReference() const</div><div class="ttdoc">Return the ref-count for this task. </div><div class="ttdef"><b>Definition:</b> PxTask.h:281</div></div>
<div class="ttc" id="classphysx_1_1PxLightCpuTask_html_a7e5dbe5f98e11385d0e0a921d3af8243"><div class="ttname"><a href="classphysx_1_1PxLightCpuTask.html#a7e5dbe5f98e11385d0e0a921d3af8243">physx::PxLightCpuTask::mCont</a></div><div class="ttdeci">PxBaseTask * mCont</div><div class="ttdoc">Continuation task, can be NULL. </div><div class="ttdef"><b>Definition:</b> PxTask.h:310</div></div>
<div class="ttc" id="classphysx_1_1PxTask_html_a5ea294d819b903a507efe1358f86b8cd"><div class="ttname"><a href="classphysx_1_1PxTask.html#a5ea294d819b903a507efe1358f86b8cd">physx::PxTask::startAfter</a></div><div class="ttdeci">PX_INLINE void startAfter(PxTaskID taskID)</div><div class="ttdoc">Inform the PxTaskManager this task cannot start until the given. </div><div class="ttdef"><b>Definition:</b> PxTask.h:137</div></div>
<div class="ttc" id="classphysx_1_1PxLightCpuTask_html_a56ef764508a2bbc98d82bb6dbb09fa3e"><div class="ttname"><a href="classphysx_1_1PxLightCpuTask.html#a56ef764508a2bbc98d82bb6dbb09fa3e">physx::PxLightCpuTask::setContinuation</a></div><div class="ttdeci">PX_INLINE void setContinuation(PxTaskManager &amp;tm, PxBaseTask *c)</div><div class="ttdoc">Initialize this task and specify the task that will have its ref count decremented on completion...</div><div class="ttdef"><b>Definition:</b> PxTask.h:230</div></div>
<div class="ttc" id="classphysx_1_1PxLightCpuTask_html"><div class="ttname"><a href="classphysx_1_1PxLightCpuTask.html">physx::PxLightCpuTask</a></div><div class="ttdoc">A PxBaseTask implementation with immediate execution and simple dependencies. </div><div class="ttdef"><b>Definition:</b> PxTask.h:208</div></div>
<div class="ttc" id="classphysx_1_1PxTask_html_ad3828abb4bd2237af28ecd08b972b1af"><div class="ttname"><a href="classphysx_1_1PxTask.html#ad3828abb4bd2237af28ecd08b972b1af">physx::PxTask::addReference</a></div><div class="ttdeci">PX_INLINE void addReference()</div><div class="ttdoc">Manually increment this task&amp;#39;s reference count. The task will not be allowed to run until removeRefer...</div><div class="ttdef"><b>Definition:</b> PxTask.h:147</div></div>
<div class="ttc" id="classphysx_1_1PxTask_html_a01ed1f8968b3e631509c42994b10b5cd"><div class="ttname"><a href="classphysx_1_1PxTask.html#a01ed1f8968b3e631509c42994b10b5cd">physx::PxTask::PxTask</a></div><div class="ttdeci">PxTask()</div><div class="ttdef"><b>Definition:</b> PxTask.h:113</div></div>
<div class="ttc" id="namespacephysx_html_a8ee037dcecf7198800e1f302795c10ee"><div class="ttname"><a href="namespacephysx.html#a8ee037dcecf7198800e1f302795c10ee">physx::PxU64</a></div><div class="ttdeci">uint64_t PxU64</div><div class="ttdef"><b>Definition:</b> PxSimpleTypes.h:69</div></div>
<div class="ttc" id="classphysx_1_1PxTask_html_ac4a43ca8ae513a20c1d61bc9aecfce89"><div class="ttname"><a href="classphysx_1_1PxTask.html#ac4a43ca8ae513a20c1d61bc9aecfce89">physx::PxTask::PxTaskMgr</a></div><div class="ttdeci">friend class PxTaskMgr</div><div class="ttdef"><b>Definition:</b> PxTask.h:191</div></div>
<div class="ttc" id="classphysx_1_1PxTask_html_aa67264a3a16ca138fd854539bf52ac06"><div class="ttname"><a href="classphysx_1_1PxTask.html#aa67264a3a16ca138fd854539bf52ac06">physx::PxTask::mTaskID</a></div><div class="ttdeci">PxTaskID mTaskID</div><div class="ttdoc">ID assigned at submission. </div><div class="ttdef"><b>Definition:</b> PxTask.h:189</div></div>
<div class="ttc" id="PxCpuDispatcher_8h_html"><div class="ttname"><a href="PxCpuDispatcher_8h.html">PxCpuDispatcher.h</a></div></div>
<div class="ttc" id="classphysx_1_1PxTask_html_a2a0a6f83fcd05069f594631272faa8ae"><div class="ttname"><a href="classphysx_1_1PxTask.html#a2a0a6f83fcd05069f594631272faa8ae">physx::PxTask::submitted</a></div><div class="ttdeci">virtual void submitted()</div><div class="ttdoc">Called by PxTaskManager at submission time for initialization. </div><div class="ttdef"><b>Definition:</b> PxTask.h:184</div></div>
<div class="ttc" id="PxAssert_8h_html"><div class="ttname"><a href="PxAssert_8h.html">PxAssert.h</a></div></div>
<div class="ttc" id="classphysx_1_1PxLightCpuTask_html_a2ae16158861b04543919fdc456bb4559"><div class="ttname"><a href="classphysx_1_1PxLightCpuTask.html#a2ae16158861b04543919fdc456bb4559">physx::PxLightCpuTask::setContinuation</a></div><div class="ttdeci">PX_INLINE void setContinuation(PxBaseTask *c)</div><div class="ttdoc">Initialize this task and specify the task that will have its ref count decremented on completion...</div><div class="ttdef"><b>Definition:</b> PxTask.h:249</div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html_a4fdd1448dcd86af96c5f1b79eb470e44"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html#a4fdd1448dcd86af96c5f1b79eb470e44">physx::PxBaseTask::getTaskManager</a></div><div class="ttdeci">PX_FORCE_INLINE PxTaskManager * getTaskManager() const</div><div class="ttdoc">Return PxTaskManager to which this task was submitted. </div><div class="ttdef"><b>Definition:</b> PxTask.h:88</div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html_af23fffec1e92c794d3ad73e9fc4fa974"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html#af23fffec1e92c794d3ad73e9fc4fa974">physx::PxBaseTask::mTm</a></div><div class="ttdeci">PxTaskManager * mTm</div><div class="ttdoc">Owning PxTaskManager instance. </div><div class="ttdef"><b>Definition:</b> PxTask.h:98</div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html_a517a16d9dc630c9274a7564deb3a7e4a"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html#a517a16d9dc630c9274a7564deb3a7e4a">physx::PxBaseTask::run</a></div><div class="ttdeci">virtual void run()=0</div><div class="ttdoc">The user-implemented run method where the task&amp;#39;s work should be performed. </div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html_a0fa6ca56b758ea6b8be5c3acc8e89364"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html#a0fa6ca56b758ea6b8be5c3acc8e89364">physx::PxBaseTask::setContextId</a></div><div class="ttdeci">PX_FORCE_INLINE void setContextId(PxU64 id)</div><div class="ttdef"><b>Definition:</b> PxTask.h:93</div></div>
<div class="ttc" id="PxTaskManager_8h_html"><div class="ttname"><a href="PxTaskManager_8h.html">PxTaskManager.h</a></div></div>
<div class="ttc" id="classphysx_1_1PxLightCpuTask_html_ac4a43ca8ae513a20c1d61bc9aecfce89"><div class="ttname"><a href="classphysx_1_1PxLightCpuTask.html#ac4a43ca8ae513a20c1d61bc9aecfce89">physx::PxLightCpuTask::PxTaskMgr</a></div><div class="ttdeci">friend class PxTaskMgr</div><div class="ttdef"><b>Definition:</b> PxTask.h:313</div></div>
<div class="ttc" id="classphysx_1_1PxTaskManager_html"><div class="ttname"><a href="classphysx_1_1PxTaskManager.html">physx::PxTaskManager</a></div><div class="ttdoc">The PxTaskManager interface. </div><div class="ttdef"><b>Definition:</b> PxTaskManager.h:78</div></div>
<div class="ttc" id="classphysx_1_1PxLightCpuTask_html_a63b2349867ec05cb45ba43db8c478a51"><div class="ttname"><a href="classphysx_1_1PxLightCpuTask.html#a63b2349867ec05cb45ba43db8c478a51">physx::PxLightCpuTask::getContinuation</a></div><div class="ttdeci">PX_INLINE PxBaseTask * getContinuation() const</div><div class="ttdoc">Retrieves continuation task. </div><div class="ttdef"><b>Definition:</b> PxTask.h:266</div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html_ac4a43ca8ae513a20c1d61bc9aecfce89"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html#ac4a43ca8ae513a20c1d61bc9aecfce89">physx::PxBaseTask::PxTaskMgr</a></div><div class="ttdeci">friend class PxTaskMgr</div><div class="ttdef"><b>Definition:</b> PxTask.h:100</div></div>
<div class="ttc" id="classphysx_1_1PxTask_html_acde4da75284803e84d6cb20cda890223"><div class="ttname"><a href="classphysx_1_1PxTask.html#acde4da75284803e84d6cb20cda890223">physx::PxTask::~PxTask</a></div><div class="ttdeci">virtual ~PxTask()</div><div class="ttdef"><b>Definition:</b> PxTask.h:114</div></div>
<div class="ttc" id="classphysx_1_1PxLightCpuTask_html_a4f847956e5ba51a36bbb3ced5bb15a6c"><div class="ttname"><a href="classphysx_1_1PxLightCpuTask.html#a4f847956e5ba51a36bbb3ced5bb15a6c">physx::PxLightCpuTask::removeReference</a></div><div class="ttdeci">PX_INLINE void removeReference()</div><div class="ttdoc">Manually decrement this task&amp;#39;s reference count. If the reference count reaches zero, the task will be dispatched. </div><div class="ttdef"><b>Definition:</b> PxTask.h:275</div></div>
<div class="ttc" id="classphysx_1_1PxLightCpuTask_html_a0d9094c15329d367cff90b95e0bdcf88"><div class="ttname"><a href="classphysx_1_1PxLightCpuTask.html#a0d9094c15329d367cff90b95e0bdcf88">physx::PxLightCpuTask::~PxLightCpuTask</a></div><div class="ttdeci">virtual ~PxLightCpuTask()</div><div class="ttdef"><b>Definition:</b> PxTask.h:216</div></div>
<div class="ttc" id="classphysx_1_1PxTask_html_aae6b544fb79856864edbfaf83cce023a"><div class="ttname"><a href="classphysx_1_1PxTask.html#aae6b544fb79856864edbfaf83cce023a">physx::PxTask::getReference</a></div><div class="ttdeci">PX_INLINE int32_t getReference() const</div><div class="ttdoc">Return the ref-count for this task. </div><div class="ttdef"><b>Definition:</b> PxTask.h:166</div></div>
<div class="ttc" id="classphysx_1_1PxTask_html_af4d14c61a128bf98957331c04472a4df"><div class="ttname"><a href="classphysx_1_1PxTask.html#af4d14c61a128bf98957331c04472a4df">physx::PxTask::getTaskID</a></div><div class="ttdeci">PX_INLINE PxTaskID getTaskID() const</div><div class="ttdoc">Return the unique ID for this task. </div><div class="ttdef"><b>Definition:</b> PxTask.h:174</div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html_a07c9f6e71f0723bcf914fce51036d36e"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html#a07c9f6e71f0723bcf914fce51036d36e">physx::PxBaseTask::addReference</a></div><div class="ttdeci">virtual void addReference()=0</div><div class="ttdoc">Implemented by derived implementation classes. </div></div>
<div class="ttc" id="classphysx_1_1PxTaskManager_html_a36a746ff81e26d57195ebfdd0141e912"><div class="ttname"><a href="classphysx_1_1PxTaskManager.html#a36a746ff81e26d57195ebfdd0141e912">physx::PxTaskManager::taskCompleted</a></div><div class="ttdeci">virtual void taskCompleted(PxTask &amp;task)=0</div><div class="ttdoc">Called by the worker threads to inform the PxTaskManager that a task has completed processing...</div></div>
<div class="ttc" id="classphysx_1_1PxTask_html_aa417f4d080c31178ff6ded2c92b8bb05"><div class="ttname"><a href="classphysx_1_1PxTask.html#aa417f4d080c31178ff6ded2c92b8bb05">physx::PxTask::finishBefore</a></div><div class="ttdeci">PX_INLINE void finishBefore(PxTaskID taskID)</div><div class="ttdoc">Inform the PxTaskManager this task must finish before the given. </div><div class="ttdef"><b>Definition:</b> PxTask.h:129</div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html_a387b986ef3916322502452724d9ba582"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html#a387b986ef3916322502452724d9ba582">physx::PxBaseTask::PxBaseTask</a></div><div class="ttdeci">PxBaseTask()</div><div class="ttdef"><b>Definition:</b> PxTask.h:47</div></div>
<div class="ttc" id="group__foundation_html_ga4a83a657390b324a460f14684e5accee"><div class="ttname"><a href="group__foundation.html#ga4a83a657390b324a460f14684e5accee">PX_ASSERT</a></div><div class="ttdeci">#define PX_ASSERT(exp)</div><div class="ttdef"><b>Definition:</b> PxAssert.h:59</div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html_aa54eb4a1b50979436a797a62e383efee"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html#aa54eb4a1b50979436a797a62e383efee">physx::PxBaseTask::getName</a></div><div class="ttdeci">virtual const char * getName() const =0</div><div class="ttdoc">Return a user-provided task name for profiling purposes. </div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html_a78f9b745c6fb4114350cb1a26f3461d3"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html#a78f9b745c6fb4114350cb1a26f3461d3">physx::PxBaseTask::removeReference</a></div><div class="ttdeci">virtual void removeReference()=0</div><div class="ttdoc">Implemented by derived implementation classes. </div></div>
<div class="ttc" id="classphysx_1_1PxLightCpuTask_html_a572d87fd23a65723d8e817f65e4681e6"><div class="ttname"><a href="classphysx_1_1PxLightCpuTask.html#a572d87fd23a65723d8e817f65e4681e6">physx::PxLightCpuTask::addReference</a></div><div class="ttdeci">PX_INLINE void addReference()</div><div class="ttdoc">Manually increment this task&amp;#39;s reference count. The task will not be allowed to run until removeRefer...</div><div class="ttdef"><b>Definition:</b> PxTask.h:290</div></div>
<div class="ttc" id="classphysx_1_1PxBaseTask_html_a5a1570309c62a12c3ecfe7e695b9f21f"><div class="ttname"><a href="classphysx_1_1PxBaseTask.html#a5a1570309c62a12c3ecfe7e695b9f21f">physx::PxBaseTask::getReference</a></div><div class="ttdeci">virtual int32_t getReference() const =0</div><div class="ttdoc">Implemented by derived implementation classes. </div></div>
<div class="ttc" id="group__foundation_html_gacb03347b642a2a5bdea1f9b305a6fbec"><div class="ttname"><a href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a></div><div class="ttdeci">#define PX_INLINE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:336</div></div>
<div class="ttc" id="classphysx_1_1PxTask_html"><div class="ttname"><a href="classphysx_1_1PxTask.html">physx::PxTask</a></div><div class="ttdoc">A PxBaseTask implementation with deferred execution and full dependencies. </div><div class="ttdef"><b>Definition:</b> PxTask.h:110</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_713b4d6d20ce249967929ad234a3da6e.html">include</a></li><li class="navelem"><a class="el" href="dir_598f76f1945002a84deb3c5c1293bdc3.html">task</a></li><li class="navelem"><a class="el" href="PxTask_8h.html">PxTask.h</a></li>
    <li class="footer">Copyright &copy; 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
  </ul>
</div>
</body>
</html>
